package com.springboot.study.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author: guodong
 * @Date: 2021/10/24 10:08
 * @Version: 1.0
 * @Description:
 */
@Data
@Component
@EnableConfigurationProperties
@ConfigurationProperties(prefix = "car")
public class CarProperties {

    public String name;

    public Integer age;


}
